#ifndef __QRS_TCP_CLIENT_H__
#define __QRS_TCP_CLIENT_H__

#define _WINSOCK_DEPRECATED_NO_WARNINGS

#pragma comment(lib,"ws2_32.lib")
#include <WinSock2.h>
#include <iostream>
#include <stdlib.h>
#include <time.h>

using namespace std;
class prs_tcp_client
{
public:
	string clientIp = "127.0.0.1";
	uint16_t clientPort = 8081;
	prs_tcp_client();
	~prs_tcp_client();
	void begin();
	void tx(float_t* txd, size_t length);
	void rx(float_t* rxd, size_t length);
	void tx(double_t* txd, size_t length);
	void rx(double_t* rxd, size_t length);
private:
	SOCKADDR_IN addr;
	SOCKET sListen;
	SOCKET Connection;
};




#endif